package com.vshop.service.impl;

import com.vshop.entity.comentity.PartnerAccessRequestRecord;
import com.vshop.mapper.PartnerAccessRequestRecordMapper;
import com.vshop.service.PartnerAccessRequestRecordService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class PartnerAccessRequestRecordServiceImpl implements PartnerAccessRequestRecordService {
    @Resource
    PartnerAccessRequestRecordMapper accessMapper;


    @Override
    public int findAccessByCode(String token, String partnerCode, String deviceId, String deviceType, String requestOrderId) {
        return accessMapper.findAccessByCode(token, partnerCode, deviceId, deviceType, requestOrderId);
    }

    @Override
    public void putInPartnerAccessInfo(PartnerAccessRequestRecord access) {
        accessMapper.putInPartnerAccessInfo(access);
    }

    @Override
    public List<PartnerAccessRequestRecord> queryURL(String requestOrderId, String deviceId) {
        return accessMapper.queryURL(requestOrderId, deviceId);
    }
}
